package com.适配器模式.类适配器;

/**
 * 适配器
 */
public class VolateAdaper extends Volatage220V implements Volate5VInterface{
    @Override
    public int output5V() {
        /**
         * 1:先获取到220V的电压
         */
        int i = output200V();
        /**
         * 2:将220V转成5V电压
         */
        int target=i/44;

        return target;
    }
}
